home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / d / datadivisiondoxdisk2.dms / datadivisiondoxdisk2.adf / n&b_hypc.doc < prev    next >
Text File  |  1995-01-31  |  8KB  |  225 lines

  1.       ·
  2.       :    ¦    .     _________                 ________       _____________
  3. ._____¦    |         ·   __   / :   ___________/   _    \      \   __  _   /
  4. |     \    |____:    :     \_/ -A : \______    \    |    \_ _:  \_/     \_/
  5. |      \   ¦    |    ¦      \_  ··D_  /   /   _/    |     /  |___/       \_
  6. |    :     :    |    |_______/  `N· _/    \    \_________/   |   \________/
  7. ¦    |_____¦    ¦    |           :  \__________/      \      ¦    \_
  8. :    :    \__________|                                 \___________/
  9. .    ·                          
  10.      .                       »»»» PRESENTS ««««
  11.  
  12.                                  HYPERCACHE
  13.                                  ==========
  14.                                                  TYPED BY SHARD
  15.                                                  
  16. HISTORY
  17. -------
  18.                                                  
  19. NEW SUMMARY VERSION 1.01C
  20.  
  21. The  new  version of Summary included on this diskette cures an infrequent
  22. problem
  23. with some systems which caused Summary to not locate all active caches.
  24.    
  25. CHANGES FOR VERSION 1.01B
  26.  
  27. The diskchange logic code has been replaced, enabling more effective
  28. determination
  29. of disk changes, particularly on removable media where more than one
  30. filesystem is
  31. being  run  on  that  device  (eg:  DF0 with both AmigaDOS and an MSDOS
  32. filesystem active)
  33.    
  34. The  device  search routine has been revised, eliminating infrequent enforcer
  35. hits
  36. that may have occurred on some systems in earlier versions.
  37.  
  38. The cache is approximately 25% faster than the initial 1.01 release.
  39.  
  40. CHANGES FOR VERSION 1.01
  41.  
  42. Version 1.01 is approximately 35% faster than version 1.0
  43.  
  44.  
  45. HINTS, CAVEATS
  46.  
  47. What do "lines", "sets", and "prefetch" mean?
  48.  
  49. A set is a completely independant cache for your device.  Rather than running
  50. only
  51. one  cache  when you start HyperCache, it sets up several, as defined by the
  52. value
  53. of  your  "sets"  parameter,  or 8 by default.  In this way, if a sector
  54. cannot be
  55. found  in  one cache, it may be found in another.  Although transparent to
  56. you, it
  57. increases  the  chance  a  sector  will  be found in the cache (known as your "Hit
  58. Ratio").
  59.  
  60. The  amount  of "prefetch", which defaults to 4 sectors, refers to the size
  61. of the
  62. sector  groups  which HyperCache moves to and from the actual device.  If
  63. prefetch
  64. is  4,  for example, HyperCache will never read less than 4 sectors at a
  65. time from
  66. the device.  Not only is it more efficient to read several sectors at once,
  67. but it
  68. can  also  increase  your  performance, since when your application wants the next
  69. sectors  from  the  device, they are often already in memory, even before
  70. they are
  71. needed!
  72.  
  73. The  number  of  "lines"  refers to the number of these prefetch sector
  74. groups per
  75. "set".    Thus,  at default, you have 8 sets each with 32 lines of 4 sectors
  76. each.
  77. The  overall  size  of the cache can thus be computed as LINES * SETS *
  78. PREFETCH *
  79. 512.  (Here 512 is the number of bytes per sector).
  80.  
  81. Changing the cache size:
  82.  
  83. The  default  cache  geometry is 4 prefetch, 8 sets, and 32 lines.  If you
  84. wish to
  85. double  the  size of the cache, you can double any one of these parameters.  It is
  86. generall  suggested  that  you  double  the  number  of lines or sets, rather
  87. than
  88. prefetch.    For  example, to set up a one megabyte cache on DH0:, you would
  89. enter
  90. the following:
  91.  
  92. HyperCache -v dh0 -l 64        // Recommended for 68000 systems
  93. or
  94. HyperCache -v dh0 -s 16        // Recommended for accelerated systems
  95.  
  96. The number of "sets" is actually the number of independant caches that will
  97. be set
  98. up  for  that  device,  and  "lines"  is  the  size  of  each one of those
  99. caches.
  100. Increasing the number of sets normally increases the cache hit ratio, but
  101. requires
  102. slightly  more  CPU  to  locate  a  sector  in  the cache.  For slow media
  103. or fast
  104. processors,  this is recommended as the setting to increase.  For a standard
  105. 68000
  106. CPU with a fast hard drive, we recommend increasing the number of lines
  107. instead.
  108.  
  109. The  -p parameter allows you to specify the minimum number of sectors that
  110. will be
  111. read  from  the  device,  regardless  of how few an application actually
  112. requests.
  113. Under  normal  circumstances,  this  can increase performance significantly.  On a
  114. very  fragmented drive, however, it can actually hurt performance.  If this
  115. is the
  116. case,  it  is suggested you defragment your hard drive or decrease the
  117. prefetch to
  118. 2:
  119.  
  120. HyperCache -v dh0 -p 2 -s 32
  121.  
  122. [  Note that you may supply any one, two, or three of the -s, -l, and -p
  123. options. 
  124. Those that are not supplied will retain their default values.  ]
  125.  
  126. You  may wish to experiment with these values to determine which provides the
  127. best
  128. results for your particular system and usage.
  129.  
  130. If  you are having trouble getting HyperCache to detach from the command
  131. line, ie:
  132. you  cannot  close  the  Shell  or  CLI  window from which it was run,
  133. remember to
  134. include  the  -n  parameter  on  the  command line.  This prevents HyperCache
  135. from
  136. displaying  its startup information and locking the output stream for that
  137. window.
  138.  
  139. When  using  a  backup  program  and  writing to a floppy disk, you should
  140. disable
  141. caching  on  that  floppy  if you intend to verify your writes.  If you fail
  142. to do
  143. this,  the  backup  program  will verify what it has just written against
  144. what was
  145. retained  in  the  cache, which is pointless.  You need only do this for the
  146. drive
  147. you are writing to.  HyperCache may be left active on all other devices.
  148.  
  149. It  is  recommended  that  you  disable  HyperCache  on any drive which you
  150. may be
  151. performing  low-level repairs to, such as a disk salvage operation,
  152. DiskDoctor, or
  153. a file re-orginization process.  HyperCache will not normally interfere with
  154. these
  155. operations,  and  has never shown to be incompatible with them, but it is
  156. still an
  157. advisable safety precaution.
  158.  
  159. Users  of  68020-based  systems  may  opt  to  use  the  special  68030
  160. version of
  161. HyperCache  included  in  this  distribution,  although  the  code itself
  162. has been
  163. optimized with the 68030 processor in mind.
  164.  
  165. Some  users  have  experienced  problems  when starting Consultron's CrossPC
  166. after
  167. starting  HyperCache.    If  you experience such problems, try starting
  168. HyperCache
  169. after CrossPC.  This only effects drives which CrossPC will share with
  170. AmigaDOS.
  171.  
  172. If  you  are  not receiving as big a performance jump as you had expected,
  173. you may
  174. want to check your hard drive for fragmentation.  Fragmentation (which means
  175. large
  176. files  are  broken up into smaller pieces and scattered across the disk) hurts
  177. the
  178. performance  of  HyperCache  significantly.  To defragment your drive, you
  179. may use
  180. any  of  several  available  commercial  and  shareware  hard  drive
  181. reorganizers.
  182. Backing  up your drive, formatting it, and restoring it will have the same
  183. effect,
  184. but of course takes more time.
  185.  
  186. Problems with Certain Devices and Controllers:
  187.  
  188. Some users have reported problems with the HardFrame controller as well as
  189. certain
  190. ICD  controllers.    If  you  have  such  a controller, and have been
  191. experiencing
  192. problems  with  it,  please  indicate  this  on  your  registration  card.
  193. We are
  194. continually  revising  the  product to enhance its compatibility with
  195. non-standard
  196. controllers, and may have a fix for you.
  197.  
  198. HyperCache  has  been  optimized for use with the OFS, FFS, and MSDOS
  199. filesystems,
  200. all  of  which  employ  a  512  byte sector size.  If you are using a device
  201. which
  202. deviates  from the 512 byte normal, please contact us, as we can provide a
  203. version
  204. which  is far more generic in its approach to the filesystem (although at a
  205. slight
  206. cost in performance).
  207.  
  208.  
  209. Please  note  that  for  the  protection  of  the  customer  and  the
  210. authors, all
  211. executables on this distribution disk are serialized and traceable.
  212.  
  213. If  you  are  impressed  enough  to consider giving a copy of your HyperCache
  214. to a
  215. friend, don't!  :-)
  216.  
  217. All product names are trademarks of their respective owners.
  218.  
  219.  
  220.  
  221.  
  222. ------------------------------------END--------------------------------------
  223.  
  224.                   L8trz.
  225.